package com.xuzz.study.spring.scanner;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @description:
 * @author: xuzz
 * @create: 2020-02-28 10:45
 */
@MyScanAnnotation
public class MyScanBean {
    @Autowired
    MyScanService myScanService;


    public void say()
    {
        System.out.println("自定义注解autowired的组件："+myScanService);
        myScanService.sayFromDepComponent();

        System.out.println("自定义扫描注解组件里的say。");
    }
}
